<template>
    <div>
        <iframe ref="iframe" id="FormDesign" :src="bdTokenUrl" frameborder="0" scrolling="auto" ></iframe>
    </div>
</template>

<script>
    export default {
        name: "FormDesign",
        data() {
            return {
                // bdTokenUrl: 'https://form-sand-zeta.vercel.app/#/',
                bdTokenUrl: 'https://mrhj.gitee.io/form-generator/#/'
            }
        },
        mounted(){
            const oIframe = document.getElementById('FormDesign');
            const deviceWidth = document.documentElement.clientWidth;
            const deviceHeight = document.documentElement.clientHeight;
            oIframe.style.width = (Number(deviceWidth)-260) + 'px'; //数字是页面布局宽度差值
            oIframe.style.height = (Number(deviceHeight)-120) + 'px'; //数字是页面布局高度差
        }
    }
</script>

<style>

</style>
